Using Gmail with WSPRView....

Firstly, run WSPRView and select the Email/Colours button.
In the Email TO box, enter your Gmail email address
In the SMTP server box, enter smtp.gmail.com
In the SMTP user name box, enter your Gmail email address again
In the SMTP Password box, enter your Gmail password. (I prefer copy / paste to ensure accuracy)
Press the Save/Close button

Select 6M, tick the VHF Distance Mode box, set distances Min to 0, Max to 1000, Time to 30 or 60 Mins, Alert level to -20 to -25dB. Tick the Alerts box.
Under normal activity conditions you should see an alert somewhere in the world within a few minutes.
You will see the white font on a black background (default alert colours) that shows an alert then on the 10 second marks (ie 10, 20, 30 etc) your will see a text showing Emailing plus a green box for 4-5 seconds. When the green box disappears the email has been sent.

Important : EXIT WSPRView.

**********

Now, Log Into your GMAIL account:

In the Inbox: Critical security alert

From Google <no-reply@accounts.google.com>

Sign-in attempt was blocked
xxxxxx@gmail.com
Someone just used your password to try to sign in to your account from a non-Google app. Google blocked them, but you should check what happened. Review your account activity to make sure no one else has access.

Button:  CHECK ACTIVITY

----> 

A suspicious app was blocked from accessing your account
xxxxxx@gmail.com
Google prevented someone from signing in to your account using a non-Google app. If this wasnt you, they know your password and you should change it immediately.

Unrecognized device
1 hour ago
Near xxxxxxx QLD, Australia  (Location for me..)
vvv.xxx.yyy.zzz (IP address) (V4 IP, for me..)

Were you recently prevented from signing in to your Google Account?

Buttons : NO, SECURE ACCOUNT     and    YES

Press YES

----> 

Less secure app blocked

Google blocked the app you were trying to use because it doesn't meet our security standards.
Some apps and devices use less secure sign-in technology, which makes your account more vulnerable. You can turn off access for these apps, which we recommend, or turn on access if you want to use them despite the risks.
LINK: Learn more

----> 

https://myaccount.google.com/lesssecureapps

Allow less secure apps: OFF   ---> Turn ON

................................


It was because Google blocked login this way. So after spending 10 hours triple checking every possible setting in my code I found this page:

https://www.google.com/settings/security/lesssecureapps

and enabled access for "less secure apps".

UPDATE:

After that try to send an e-mail with Delphi and then if it fails log into your Gmail account and visit these 2 pages:

https://myaccount.google.com/device-activity

https://myaccount.google.com/secureaccount

and confirm this new "unknown device" is you (it's your Delphi app).



https://myaccount.google.com/device-activity

Look for --> Unknown device
Last synced: Today at 11:05 AM (1 hour ago)
We recently prevented a sign-in attempt from this device. You indicated this attempt as yours. For your security, we'll continue to show this device in the list for two weeks. You can also review this event in your Notification & alerts page.
Last location used	
xxxxxxxx QLD, Australia - 1 hour ago
Notifications & alerts	
Google prevented a sign-in from a less secure app
xxxxxxxx QLD, Australia - 1 hour ago

Once it is approved by you :  You marked this activity as yours.

*************************************************************************************

NOW, start the WSPRView software again to get it to send another alert email.

Check your GMail inbox again.. Hmmm no alert email...
Now browse to your SPAM folder and find the alert email in it, and it is sure to be there...
To make it always appear in your inbox instead, you need to mark the sender ( WSPRView@vk4adc.com ) as a 'friendly'.
Right click on the message and scroll to Add Sender to Safe Senders List. 
If mail from a specific domain is going to the Junk E-mail folder select the option to Add Sender's Domain (@vk4adc.com) to Safe Senders List.


****************************

The above process allows you to use GMail as your SMTP server and receive the emails into your Gmail account. 
Note that you don't have to actually receive the emails into Gmail, just changing the Email TO detail can send them to any email account but using GMail's SMTP service.

*************************************************************************************

END.
